package com.csnf.hymall.dao.imp;

import com.csnf.hymall.dao.UserMapper;
import com.csnf.hymall.entity.Admin;
import com.csnf.hymall.entity.User;
import com.csnf.hymall.util.PageUtil;

import java.sql.SQLException;
import java.util.List;

public class UserMapperImp extends BaseMapperImp implements UserMapper {


    @Override
    public int getUserTotal(String startDate, String endDate) {
        try {
            String sql = "select count(*) from user where user_birthday BETWEEN ? AND ?";
            int count = getTotalCount(sql,startDate,endDate);
            return count;
        }catch (SQLException e) {
            throw new RuntimeException(e);
        }

    }
}
